﻿using System.Windows;
using Analyzer.ViewModel;

namespace Analyzer.View
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
            DispatchService.DispatchObject = this.Dispatcher;
        }

        private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e)
        {
            (this.DataContext as MainWindowViewModel).DeleteFiles();
        }
    }
}
